package com.sunma.repair.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sunma.common.annotation.Excel;
import com.sunma.common.core.domain.BaseEntity;

/**
 * 资产报修对象 assets_repair
 * 
 * @author sunma
 * @date 2024-07-12
 */
public class AssetsRepair extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 资产领用ID */
    @Excel(name = "领用表ID")
    private Long receiveId;

    @Excel(name = "物资ID")
    private Long assetsId;
    @Excel(name = "物资名称")
    private String assetsName;
    /** 维修状态 */
    @Excel(name = "维修状态")
    private String status;

    /** 报修理由 */
    @Excel(name = "报修理由")
    private String reason;

    /** 报修日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报修日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 报修员工ID */
    @Excel(name = "报修员工ID")
    private Long userId;

    /** 报修理由 */
    @Excel(name = "报修人员")
    private String userName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getReceiveId() {
        return receiveId;
    }

    public void setReceiveId(Long receiveId) {
        this.receiveId = receiveId;
    }

    public Long getAssetsId() {
        return assetsId;
    }

    public void setAssetsId(Long assetsId) {
        this.assetsId = assetsId;
    }

    public String getAssetsName() {
        return assetsName;
    }

    public void setAssetsName(String assetsName) {
        this.assetsName = assetsName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "AssetsRepair{" +
                "id=" + id +
                ", receiveId=" + receiveId +
                ", assetsId=" + assetsId +
                ", assetsName='" + assetsName + '\'' +
                ", status='" + status + '\'' +
                ", reason='" + reason + '\'' +
                ", date=" + date +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                '}';
    }
}
